package com.ruoyi.company.service.impl;

import com.ruoyi.company.domain.CompanyLinkman;
import com.ruoyi.company.mapper.CompanyLinkmanMapper;
import com.ruoyi.company.service.ICompanyLinkmanServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author WangChangShuo
 * @date 2022年06月14日 16:49
 */
@Service
public class CompanylinkmanServerImpl implements ICompanyLinkmanServer {
    @Autowired
    CompanyLinkmanMapper companyLinkmanMapper;

    @Override
    public int insertCompanyLinkman(List<CompanyLinkman> linkmanList) {
        return companyLinkmanMapper.insertCompanyLinkman(linkmanList);
    }

    @Override
    public List<CompanyLinkman> selectLinkman(Map<String, Object> map) {
        return companyLinkmanMapper.selectLinkman(map);
    }

    @Override
    public int deleteLinkmanById(ArrayList<Long> arrayList) {
        return companyLinkmanMapper.deleteLinkmanById(arrayList);
    }
}
